package com.cisdi.my.shop.service.impl;

import com.cisdi.my.shop.commons.context.SpringContext;
import com.cisdi.my.shop.dao.UserDao;
import com.cisdi.my.shop.entity.User;
import com.cisdi.my.shop.service.UserService;

/**
 * @author pengyangyan
 * @version 1.0.0
 * @date 2019年09月16日 13:49:00
 */
public class UserServiceImpl implements UserService {


    public User login(String email, String password) {
        SpringContext springContext = new SpringContext();
        UserDao userDao = (UserDao) springContext.getBean("userDao");
        return userDao.getUserByEmailAndPassword(email,password);
    }
}
